package generic1;

/**
 * @Auther: 杨通通
 * @Date: 2024/10/23 23:24
 * @Description:
 */
public class Cat extends Animal{
    public Integer age;

    public Cat(String name, Integer age) {
        super(name);
        this.age = age;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}